/**
 * 
 */
package com.an.framework.security.user.vo;

import org.springframework.security.core.GrantedAuthority;

/**
 * @author Administrator
 *权限
 */
public class Authority implements GrantedAuthority{

	/**
	 * 串行化
	 */
	private static final long serialVersionUID = -8141857593883787368L;

	/**
	 * username:用户姓名.
	 * @since JDK 1.8
	 */
	private String username;
	
	/**
	 * id:ID.
	 * @since JDK 1.8
	 */
	private int id;
	
	/**
	 * authority:权限.
	 * @since JDK 1.8
	 */
	private String authority;
	
	@Override
	public String toString() {
		return "Authority [username=" + username + ", id=" + id + ", authority=" + authority + "]";
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Authority() {
		super();
	}

	public Authority(String authority) {
		super();
		this.authority = authority;
	}

	public String getAuthority() {
		return authority;
	}
	
	public void setAuthority(String authority) {
		this.authority = authority;
	}

}
